/************************************************************************
  * Copyright(c) 2023 Levetop Semiconductor Co.,Led. All rights reserved.
  * @file     wav.h
  * @author   UartTFT Application Team
  * @version  V0.0.1
  * @date     2023-01-01
  * @brief     
 *************************************************************************/

#ifndef _WAV_H
#define _WAV_H

#include "type.h"

extern uint8_t wav_reduce_para;
extern uint8_t wav_reduce_para_last;
extern uint8_t gWavType;
extern uint8_t gWav_status;
extern uint16_t gWav_play_num;

void WAV_Data_conversion(uint8_t* buf,uint16_t len);
void WAV_Device_Init(uint16_t arr);
void WAV_Data_TX_DMA(uint8_t* buf,uint16_t len);
void dma_tcd_init_pri(void);

void WAV_amplifier_EN(void);
void WAV_amplifier_DIS(void);
void close_wav_dac(void);

void Wav_DAC_Init(uint16_t num);
uint8_t start_play_wav(uint16_t num);
uint8_t LT_PlayWav_DAC(void);


#endif /* _WAV_DAC_H */
